#!/bin/sh

uci -q batch <<-EOF >/dev/null
	delete firewall.chinadns
	set firewall.chinadns=include
	set firewall.chinadns.type=script
	set firewall.chinadns.path=/etc/firewall.chinadns
	set firewall.chinadns.reload=1
	commit firewall
EOF

/etc/init.d/chinadns enable >/dev/null 2>&1

exit 0
